package com.ridu.project.beshid.entity;

import lombok.*;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Administrator on 2017/2/14.
 */
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Entity
@Data
@Table(name = "user", catalog = "besh_id_edu")
public class UserEntity extends BaseEntity {
    private String username; //用户名
    private String password; //密码
    private String mobile;
    private String salt = ""; //加密密码的盐
    private String roles; //拥有的角色列表
    private Boolean locked = Boolean.FALSE;
    private String platform;
    private Integer jifen=10;
    private Integer loginNum;//登陆次数
    private String wantStatus;//意愿状态
    private String subscriptionRatio;
    private String rate;
    private String token;
    private String code;
    private Date passTime;

    public UserEntity(String username, String password, String category, String roles) {
        this.username = username;
        this.password = password;
        this.roles = roles;
        platform = category;
    }

}
